package com.newer.utils.sys;

import java.util.ArrayList;
import java.util.List;

/**
 * layui-tree 
 * @author Administrator
 *  title：string 显示的值 （必填）
	value：string 隐藏的值 （必填）
    checked：bool 默认是否选中，true为选中，false与不填都为不选中 （选填）
    disabled：bool 是否可用，true为不可用，false与不填都为可用 （选填）
    data： json数组 节点的子节点数组，结构与此节点一致，（必填）如果无子节点则必须为 data:[]

 */
public class Tree {
	private String title;
	private String value;
	private boolean checked;
	private boolean disabled;
	private List<Tree> data = new ArrayList();
	
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getValue() {
		return value;
	}
	public void setValue(String value) {
		this.value = value;
	}
	public boolean isChecked() {
		return checked;
	}
	public void setChecked(boolean checked) {
		this.checked = checked;
	}
	public boolean isDisabled() {
		return disabled;
	}
	public void setDisabled(boolean disabled) {
		this.disabled = disabled;
	}
	
	public List<Tree> getData() {
		return data;
	}
	public void setData(List<Tree> data) {
		this.data = data;
	}
	public Tree() {
		super();
		// TODO Auto-generated constructor stub
	}
	public Tree(String title, String value, boolean checked, boolean disabled, List<Tree> data) {
		super();
		this.title = title;
		this.value = value;
		this.checked = checked;
		this.disabled = disabled;
		this.data = data;
	}
	@Override
	public String toString() {
		return "Tree [title=" + title + ", value=" + value + ", checked=" + checked + ", disabled=" + disabled
				+ ", data=" + data + "]";
	}
}
